package blog.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author HuLin
 * @date
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResultVo<T> {
    private Integer code;//0_成功，1_失败，2_失败原因
    private String msg;
    private T data;

    public ResultVo(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
